<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>11</title>
</head>

<script type="text/javascript" src="E:\IDEACode\musicbox\src\main\resources\static\js\jquery.js"></script>
<body>

</body>

<script>
    $(function () {
        $.ajax({
            url:"http://127.0.0.1:8080/captchaImage",
            method:"GET",
            success:function (result) {
                if(result.code===1){
                    $("#mytest").attr("src","data:image/png;base64,"+result.data.img)
                }
            }
        });
    });
</script>
</html>